var array = [22, 23, 22, 24, 5, 27, 28];

function unData(_arr) {
    let tag;

    _arr.map((item, index) => {
        console.log(item, index, '11111');
        tag = _arr[index];
        function fun(num) {
            tag
        }

    })
}